package com.ht.pms.ui.controller.template;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/salaryTemplate")
public class TemplateUiController {
	
	@RequestMapping("/templateMgr")
    public String toTemplateMgr(){
        return "/salaryTemplate/templateList";
    }
	
	@RequestMapping("/templateDetail")
    public String toTemplateDetail(Model model , String templateCode){
		model.addAttribute("templateCode", templateCode);
        return "/salaryTemplate/templateDetail";
    }



	@RequestMapping("/importTemplateField")
    public String toImportTemplateField(Model model , String templateCode){
		model.addAttribute("templateCode", templateCode);
        return "/salaryTemplate/importTemplateField";
    }

}
